package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pubinfo.passbook.common.model.dto.engine.EngineDescription;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 变量占位符
 *
 * @author zhouch
 * @date 2021/12/14 10:13
 */
@Data
@NoArgsConstructor
@ApiModel("变量占位符")
public class TEnginePlaceholderVar {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("变量名称")
    @NotBlank(message = "变量名称不能为空")
    private String name;

    /*
     * 标识符
     */
    @ApiModelProperty("变量标识符")
    @NotBlank(message = "变量占位符不能为空")
    private String symbol;

    /**
     * 计算链类型
     */
    @ApiModelProperty(EngineDescription.COMPUTE_CHAIN_TYPE)
    @NotBlank(message = "计算链类型不能问为空")
    private String chainType;


    @ApiModelProperty("描述")
    @NotBlank(message = "描述不能为空")
    private String description;
}
